Skip to content

Add test-markers input#75

Merged
CodeGat merged 2 commits intomainfrom
mct-146-add-test-markers
Mar 28, 2025
Merged

Add test-markers input#75
CodeGat merged 2 commits intomainfrom
mct-146-add-test-markers

Conversation

@CodeGat
Copy link
Copy Markdown
Member

@CodeGat CodeGat commented Mar 28, 2025

References ACCESS-NRI/model-config-tests#147

Background

The 'generate initial checksums' workflow used to assume that the pytest markers were always checksum. The markers had changed, which led to the workflow erroneously succeeding without testing anything.

Instead, make the pytest markers for initial checksums settable by the user, giving a sensible default of repro_historical rather than hardcoding it.

The PR

  • Add a new, not required input of test-markers that defaults to repro_historical.
  • Log this output
  • Pass it to the model-config-tests workflow entrypoint.

@CodeGat CodeGat added type:bug priority:blocker type:infra Dealing with CI/CD Pipelines labels Mar 28, 2025
@CodeGat CodeGat self-assigned this Mar 28, 2025
@CodeGat CodeGat requested a review from blimlim March 28, 2025 01:24
…updated referenced workflow inputs, uses PR branch ref
@jo-basevi jo-basevi had a problem deploying to Gadi Initial Checksum March 28, 2025 04:21 — with GitHub Actions Failure
@CodeGat CodeGat marked this pull request as ready for review March 28, 2025 04:24
@CodeGat CodeGat requested review from Copilot and jo-basevi and removed request for blimlim March 28, 2025 04:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the workflow to allow users to specify custom pytest markers for generating initial checksums. Key changes include:

  • Adding a new, optional input "test-markers" with a default value.
  • Adding a new optional input "committed-checksum-create-release" for tag-based GitHub Releases.
  • Updating the generate-checksums job to conditionally run and pass the new test markers input.

Comment thread .github/workflows/generate-initial-checksums.yml
Copy link
Copy Markdown
Contributor

@jo-basevi jo-basevi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - will need a follow-up PR with updating model-config-tests workflow to @main

@CodeGat CodeGat merged commit 36681db into main Mar 28, 2025
4 of 5 checks passed
@anton-seaice anton-seaice deleted the mct-146-add-test-markers branch December 2, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker type:bug type:infra Dealing with CI/CD Pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants